function CancelToken(executor) {
    let outFn = null;
    this.promise = new Promise((resolve, reject) => {
        outFn = resolve;
    })
    executor(() => {
        console.log('123123');
        outFn();
    })
}
export default CancelToken;